<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h3>js 是负责逻辑处理的，比如请求发数据</h3>
    <!-- 1.书写js的位置 -->
    <script>
alert('加速电脑');
alert('加速成功');
    </script>
    <!-- 2.行内书写js -->
    <input type="button" value="清理内存" onclick="alert('清理成功')">
</body>
</html>